package com.auemall.constant;

public class ApplicationConstant {

	
	   public static final int API_MAX_SIZE = 200;

	    public static final int SQL_COST_WARN_MS = 50;

	    public static final int PRODUCT_CACHE_ONOFF_LOG_TOTAL = 50;

	    public static final int DEVICE_ID_MIN_LENGTH = 21;
	    public static final int PRODUCT_ID_LENGTH = 20;

	    public static final int MIN_PACKAGE_UPDATE_INTERVAL_MS = 60 * 1000;
	    public static final int MAX_USERINFO_CACHE_MS = 5 * 60 * 1000;

	    public static final int PRODUCT_STATE_DEVELOPING = 1;
	    public static final int PRODUCT_STATE_CHECKING = 2;
	    public static final int PRODUCT_STATE_PUBLISH = 3;

	    public static final int ITEM_STATE_VALID = 0;
	    public static final int ITEM_STATE_INVALID = 1;
	    public static final int ITEM_STATE_REMOVED = 2;
	    // 新建企业用户状态, 需要认证.
	    public static final int ITEM_STATE_NEED_VERIFY = 3;

	    //1-布尔值，2-数值，3-枚举，4-扩展
	    public static final int VARIABLE_TYPE_BOOLEAN = 1;
	    public static final int VARIABLE_TYPE_INT = 2;
	    public static final int VARIABLE_TYPE_STRING = 3;

	    // 0-个人用户, 1-企业用户
	    public static final int USER_TYPE_PERSON = 0;
	    public static final int USER_TYPE_COMPANY = 1;

	    // custom user token expire time, 180day
	    public static final long CUSTOMER_USER_TOKEN_EXPIRE_TIME_MS = 180 * 24 * 3600 * 1000;

	    public static final int FORMDATA_MAX_SIZE = 1024 * 100;
	    public static final String FORMDATA_MAX_SIZE_KB = "100KB";

//	    SMS
	    public static final int SMS_VALID_TIME = 1000 * 60 * 2 ;
	    
	    public static final int SMS_CODE_LENGTH = 4 ;

	    //阿里云相关
	    public static final String PAYMENT_EXPRESS_TIMEOUT = "2m" ;
	    
	    public static final String ALIYUN_PAY_URL="https://openapi.alipaydev.com/gateway.do" ;
	    
	    public static final String ALIYUN_PAY_APPID="2016100900648125" ;
	    
	    public static final String ALIYUN_PAY_PRIVATE_KEY="MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQ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xSLsIxRtWue/X4xs1B27Vm84BBHeN4EG8YKAJDB3w9XORZyALa5u7v5qAEAeBfJGMn83Sl7aLpwRFColXHJa43IicZjr2n7VvkZ4ZpcUmpNHg9La5cjW8yVAoGAW0UIfUdqiaoTwQ31eh5UacoR7P9HruOpR6AFOiIZjSXqGcV+kDqrcEYbUprGEXuB6exTZUnnYHUNRYyOdkbfAwvFOtz/g8J4Y7tIEbheLc8vMBp+d5EOyDQ2HaoVlj64h0v11Fo6Qvmw/FJmUiUlU/1Yr4UH0Ygne+l0fXnTDSECgYAmzyTdudpjOuv+VQPiNiQbslI/IwVKZfzwfNgt132WNqkcnOjfG4sM5i/nPmOe9kE5vAbXJWJTQuIsqwhg6SP+C/TA5c3O2xpY7Aa/ZW2nVB1uGBoGq5wo0SiFlXXjq4Jevhh2rmOZh/z5dMepCbQC4ipMEMSoGPYRjfi+aNOX2A==" ;
	   
	    public static final String ALIYUN_PAY_PUBLICE_KEY="MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtSMhrkaGb8Dq6bDercOm9SNaQJzNZ2VZGf1F975hzSep1KgUccDd1Z24SzbSiG5XgD3THflkB//ELkkFrr9coazIEpQ76OrcgwH8naEGAh8YJEN/MUIprJ0dBWq5RxhJrtYLI01Q48heQJGmlDvOTlHnXoV0QyCiqo65wGe94h1ZiZepMfq5SNel6Qo70LXl0wUHjxlT4ROzucln9JCLbIxhPcAI6wqrzWDOoV5mhLWf4aTGj484uiGJYj1AL4gUVI3hJa8VTUdMgXcPL2uHyagUibfWImMEaoN8fuwnKrqXjmXccus+K5TDiWlJulDXHeCdn0RHAmaCrJK6X4NtbwIDAQAB" ;
	
	 
	    /**
	     * 分頁每页显示的数量
	     */
	    public static final Integer PAGE_SIZE = 10;
	    
	    public static final Integer DEFAULT_VALUE_1 = 1;
	    
	    public static final Integer DEFAULT_VALUE_0 = 0;
	    
	    public static final String CONF_NAME = "resource/resource.properties";
	    
	    
	    /**********************发送短配置信息************************/
	    
	    public static final String SMG_PROJECT = "y3JOK1";
} ;



